package com.jfinal.core;

import java.lang.reflect.Method;

import com.jfinal.aop.Interceptor;

/**
 * CMSAction
 * @author Marc
 * @version 1.0
 */
public class CMSAction extends Action {
	
	private String note = null ;
	private String type = null ; 
	private int isAdmin = 1 ; 
	
	public CMSAction(String controllerKey, String actionKey,
			Class<? extends Controller> controllerClass, Method method,
			String methodName, Interceptor[] interceptors, String viewPath,String note,String type,int isAdmin) {
		super(controllerKey, actionKey, controllerClass, method, methodName,
				interceptors, viewPath);
		this.note = note ; 
		this.type  = type ; 
		this.isAdmin = isAdmin ; 
	}
	

	
	/**
	 * @return the isAdmin
	 */
	public boolean getIsAdmin() {
		return isAdmin == 0;
	}



	/**
	 * @param isAdmin the isAdmin to set
	 */
	public void setIsAdmin(int isAdmin) {
		this.isAdmin = isAdmin;
	}



	/**
	 * @return the note
	 */
	public String getNote() {
		return note;
	}

	/**
	 * @param note the note to set
	 */
	public void setNote(String note) {
		this.note = note;
	}


	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}


	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}
	

	
}
